// 静态资源
import './assets/styles/index.less'

import { createApp } from 'vue'


import App from './App.vue'
import { setupRouter } from './router'
import { setupStore } from './store'
import { setupDirectives } from './directive'
import { setupPlugins } from './plugins'


// 全局组件
import { setupGlobalComponent } from './components/global'



async function bootstrap() {
    const app = createApp(App)

    // 注册缓存
    setupStore(app)
    // 全局组件
    setupGlobalComponent(app)
    // 注册指令
    setupDirectives(app)
    // 注册插件
    setupPlugins(app)
    // 注册路由
    await setupRouter(app)

    app.mount('#app')
}

bootstrap()

